# -*- coding: utf-8 -*- 
# 作者:飞虎
# 开发时间:2022/5/15 22:28
from PyQt5.Qt import *


class Window(QWidget):
	def __init__(self):
		super().__init__()
		self.setWindowTitle('QErrorMessage学习')
		self.resize(500, 500)
		self.setup_ui()

	def setup_ui(self):
		em=QErrorMessage(self)
		em.setWindowTitle('错误提示')

		# em.showMessage("飞虎哥,人狠话不多1")
		# em.showMessage("飞虎哥,人狠话不多2")
		# em.showMessage("飞虎哥,人狠话不多3")
		# em.showMessage("飞虎哥,人狠话不多4")

		# em.show()


if __name__ == '__main__':
	import sys

	app = QApplication(sys.argv)
	window = Window()
	window.show()
	QErrorMessage.qtHandler()
	# qDebug('xxx')
	qWarning("123456")
	sys.exit(app.exec_())